﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ReconocedorSonidosVocales
{
    class File
    {
        public TextWriter file;
        public File(String fileName) {
            file = new StreamWriter(fileName);
        }

        public void writeWeights(Double[] w,String output){
            foreach (Double i in w)
            {
             
                file.Write(i+" ");
          
          
            }
            file.Write("[" + output+"]");
            file.WriteLine("");
 
        }
        public void write(String line)
        {

                file.Write(" [" + line + "]");

        }
        public void writeCategory(Category c)
        {
            file.Write(c);
            file.WriteLine("");

        }
        public void close() {
            file.Close();
        }

    }
}
